
#include 	"SysConfig.h"
#include	"Define.h"
#include	"Port.h"
#include	"Boot_Util.h"
#include	"Display.h"

#ifdef  ST7565P
#include	"ST7565P.h"

unsigned char const *ucBOOT_AGC5030_FontTableAddrs;

extern unsigned char ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 3];
extern unsigned short	usST7565P_DataBufCnt;
extern unsigned char ucDisplayBuf0[ST7565P_WIDTH];
extern unsigned char ucDisplayBuf1[ST7565P_WIDTH];

#pragma SECTION rom Boot_ConstRom

unsigned short const BOOT_AGC5030FontIndex_0x0021_0x007E[] = {
	0x0021, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 
	0x002B, 0x002C, 0x002D, 0x0030, 0x0022, 0x002A, 0x002E, 0x002F, 
	0x003A, 0x003C, 0x003E, 0x003F, 0x005C, 0x007C, 0x0031, 0x0032, 
	0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, 0x003B, 
	0x003D, 0x0040, 0x0041, 0x0061, 0x0042, 0x0062, 0x0043, 0x0063, 
	0x0044, 0x0064, 0x0045, 0x0065, 0x0046, 0x0066, 0x0047, 0x0067, 
	0x0048, 0x0068, 0x0049, 0x0069, 0x004A, 0x006A, 0x004B, 0x006B, 
	0x004C, 0x006C, 0x004D, 0x006D, 0x004E, 0x006E, 0x004F, 0x006F, 
	0x0050, 0x0070, 0x0051, 0x0071, 0x0052, 0x0072, 0x0053, 0x0073, 
	0x0054, 0x0074, 0x0055, 0x0075, 0x0056, 0x0076, 0x0057, 0x0077, 
	0x0058, 0x0078, 0x0059, 0x0079, 0x005A, 0x007A, 0x005B, 0x005D, 
	0x005E, 0x005F, 0x007B, 0x007D, 0x007E, 0xFFFF
};

unsigned char const ucBOOT_AGC5030_FontDataDefault[] =
{
	6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

unsigned char const BOOT_AGC5030Font_0x0021_0x007E[] = {
	 3, 0x07, 0xFA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0021, (!), Index = 000
	 8, 0x00, 0x08, 0x00, 0x5E, 0x01, 0xE8, 0x00, 0x5E, 0x01, 0xE8, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0023, (#), Index = 001
	 7, 0x01, 0x88, 0x02, 0x44, 0x07, 0xFE, 0x02, 0x24, 0x01, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0024, ($), Index = 002
	12, 0x03, 0x80, 0x04, 0x40, 0x04, 0x42, 0x03, 0x8C, 0x00, 0x30, 0x00, 0xC0, 0x03, 0x1C, 0x04, 0x22, 0x00, 0x22, 0x00, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0025, (%), Index = 003
	10, 0x00, 0x1C, 0x03, 0xA2, 0x04, 0x42, 0x04, 0x62, 0x03, 0x94, 0x00, 0x08, 0x00, 0x34, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0026, (&), Index = 004
	 3, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0027, ('), Index = 005
	 5, 0x01, 0xF8, 0x06, 0x06, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0028, ((), Index = 006
	 5, 0x08, 0x01, 0x06, 0x06, 0x01, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0029, ()), Index = 007
	 7, 0x00, 0x20, 0x00, 0x20, 0x00, 0xF8, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x002B, (+), Index = 008
	 4, 0x00, 0x01, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x002C, (,), Index = 009
	 5, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x002D, (-), Index = 010
	 7, 0x03, 0xFC, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x03, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0030, (0), Index = 011
	 5, 0x03, 0x80, 0x00, 0x00, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x22, Index = 012
	 7, 0x00, 0x20, 0x00, 0xA8, 0x00, 0x70, 0x00, 0xA8, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x2A, Index = 013
	 3, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x2E, Index = 014
	 6, 0x00, 0x03, 0x00, 0x1C, 0x00, 0xE0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x2F, Index = 015
	 3, 0x02, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x3A, Index = 016
	 8, 0x00, 0x20, 0x00, 0x20, 0x00, 0x50, 0x00, 0x50, 0x00, 0x88, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x3C, Index = 017
	 8, 0x00, 0x88, 0x00, 0x88, 0x00, 0x50, 0x00, 0x50, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x3E, Index = 018
	 7, 0x02, 0x00, 0x04, 0x00, 0x04, 0x32, 0x04, 0x40, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x3F, Index = 019
	 6, 0x06, 0x00, 0x01, 0xC0, 0x00, 0x38, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x5C, Index = 020
	 3, 0x07, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x7C, Index = 021
	 5, 0x02, 0x00, 0x02, 0x00, 0x07, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0031, (1), Index = 022
	 7, 0x03, 0x06, 0x04, 0x0A, 0x04, 0x12, 0x04, 0x22, 0x03, 0xC2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0032, (2), Index = 023
	 7, 0x02, 0x04, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x03, 0xBC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0033, (3), Index = 024
	 8, 0x00, 0x18, 0x00, 0x68, 0x01, 0x88, 0x02, 0x08, 0x07, 0xFE, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0034, (4), Index = 025
	 7, 0x07, 0xE4, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x04, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0035, (5), Index = 026
	 7, 0x03, 0xFC, 0x04, 0x22, 0x04, 0x42, 0x04, 0x42, 0x02, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0036, (6), Index = 027
	 7, 0x04, 0x00, 0x04, 0x0E, 0x04, 0x70, 0x05, 0x80, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0037, (7), Index = 028
	 7, 0x03, 0xBC, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x03, 0xBC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0038, (8), Index = 029
	 7, 0x03, 0x84, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x03, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0039, (9), Index = 030
	 4, 0x00, 0x02, 0x02, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x003B, (;), Index = 031
	 8, 0x00, 0x50, 0x00, 0x50, 0x00, 0x50, 0x00, 0x50, 0x00, 0x50, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x003D, (=), Index = 032
	13, 0x01, 0xF8, 0x02, 0x04, 0x04, 0x02, 0x08, 0x71, 0x08, 0x89, 0x09, 0x09, 0x09, 0x19, 0x09, 0xE5, 0x04, 0x04, 0x02, 0x08, 0x01, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0040, (@), Index = 033
	11, 0x00, 0x06, 0x00, 0x18, 0x00, 0x70, 0x01, 0x90, 0x06, 0x10, 0x01, 0x90, 0x00, 0x70, 0x00, 0x18, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0041, (A), Index = 034
	 8, 0x00, 0x4C, 0x00, 0x92, 0x00, 0x92, 0x00, 0x92, 0x00, 0x7E, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0061, (a), Index = 035
	 9, 0x07, 0xFE, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x03, 0xBC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0042, (B), Index = 036
	 7, 0x07, 0xFE, 0x00, 0x44, 0x00, 0x82, 0x00, 0x82, 0x00, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0062, (b), Index = 037
	 9, 0x01, 0xF8, 0x02, 0x04, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0043, (C), Index = 038
	 7, 0x00, 0x7C, 0x00, 0x82, 0x00, 0x82, 0x00, 0x82, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0063, (c), Index = 039
	 9, 0x07, 0xFE, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x02, 0x04, 0x01, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0044, (D), Index = 040
	 7, 0x00, 0x7C, 0x00, 0x82, 0x00, 0x82, 0x00, 0x44, 0x07, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0064, (d), Index = 041
	 9, 0x07, 0xFE, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x04, 0x42, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0045, (E), Index = 042
	 7, 0x00, 0x7C, 0x00, 0x92, 0x00, 0x92, 0x00, 0x92, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0065, (e), Index = 043
	 8, 0x07, 0xFE, 0x04, 0x40, 0x04, 0x40, 0x04, 0x40, 0x04, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0046, (F), Index = 044
	 6, 0x00, 0x80, 0x03, 0xFE, 0x04, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0066, (f), Index = 045
	10, 0x01, 0xF8, 0x02, 0x04, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x22, 0x04, 0x24, 0x02, 0x3E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0047, (G), Index = 046
	 7, 0x01, 0xF2, 0x02, 0x09, 0x02, 0x09, 0x01, 0x11, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0067, (g), Index = 047
	 9, 0x07, 0xFE, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x07, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0048, (H), Index = 048
	 7, 0x07, 0xFE, 0x00, 0x40, 0x00, 0x80, 0x00, 0x80, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0068, (h), Index = 049
	 3, 0x07, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0049, (I), Index = 050
	 3, 0x02, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0069, (i), Index = 051
	 7, 0x00, 0x0C, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x07, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x004A, (J), Index = 052
	 4, 0x00, 0x01, 0x05, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x006A, (j), Index = 053
	 9, 0x07, 0xFE, 0x00, 0x20, 0x00, 0x40, 0x00, 0xA0, 0x01, 0x18, 0x02, 0x04, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x004B, (K), Index = 054
	 7, 0x07, 0xFE, 0x00, 0x10, 0x00, 0x20, 0x00, 0x58, 0x00, 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x006B, (k), Index = 055
	 8, 0x07, 0xFE, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x004C, (L), Index = 056
	 3, 0x07, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x006C, (l), Index = 057
	11, 0x07, 0xFE, 0x03, 0x00, 0x00, 0xE0, 0x00, 0x18, 0x00, 0x06, 0x00, 0x18, 0x00, 0xE0, 0x03, 0x00, 0x07, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x004D, (M), Index = 058
	11, 0x00, 0xFE, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x7E, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x006D, (m), Index = 059
	 9, 0x07, 0xFE, 0x02, 0x00, 0x01, 0x80, 0x00, 0x60, 0x00, 0x18, 0x00, 0x04, 0x07, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x004E, (N), Index = 060
	 7, 0x00, 0xFE, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x006E, (n), Index = 061
	10, 0x01, 0xF8, 0x02, 0x04, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x02, 0x04, 0x01, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x004F, (O), Index = 062
	 7, 0x00, 0x7C, 0x00, 0x82, 0x00, 0x82, 0x00, 0x82, 0x00, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x006F, (o), Index = 063
	 9, 0x07, 0xFE, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x03, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0050, (P), Index = 064
	 7, 0x03, 0xFF, 0x01, 0x10, 0x02, 0x08, 0x02, 0x08, 0x01, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0070, (p), Index = 065
	10, 0x01, 0xF8, 0x02, 0x04, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x0A, 0x02, 0x04, 0x01, 0xFA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0051, (Q), Index = 066
	 7, 0x01, 0xF0, 0x02, 0x08, 0x02, 0x08, 0x01, 0x10, 0x03, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0071, (q), Index = 067
	 9, 0x07, 0xFE, 0x04, 0x20, 0x04, 0x20, 0x04, 0x20, 0x04, 0x30, 0x04, 0x28, 0x03, 0xC6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0052, (R), Index = 068
	 5, 0x00, 0xFE, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0072, (r), Index = 069
	 9, 0x03, 0x8C, 0x04, 0x42, 0x04, 0x42, 0x04, 0x22, 0x04, 0x22, 0x04, 0x22, 0x03, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0053, (S), Index = 070
	 7, 0x00, 0x64, 0x00, 0x92, 0x00, 0x92, 0x00, 0x92, 0x00, 0x4C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0073, (s), Index = 071
	 9, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x07, 0xFE, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0054, (T), Index = 072
	 5, 0x00, 0x80, 0x03, 0xFC, 0x00, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0074, (t), Index = 073
	 9, 0x07, 0xFC, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x07, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0055, (U), Index = 074
	 7, 0x00, 0xFC, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0075, (u), Index = 075
	 9, 0x06, 0x00, 0x01, 0xC0, 0x00, 0x38, 0x00, 0x06, 0x00, 0x38, 0x01, 0xC0, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0056, (V), Index = 076
	 7, 0x00, 0xC0, 0x00, 0x38, 0x00, 0x06, 0x00, 0x38, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0076, (v), Index = 077
	13, 0x07, 0x80, 0x00, 0x78, 0x00, 0x06, 0x00, 0x38, 0x01, 0xC0, 0x06, 0x00, 0x01, 0xC0, 0x00, 0x38, 0x00, 0x06, 0x00, 0x78, 0x07, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0057, (W), Index = 078
	11, 0x00, 0xC0, 0x00, 0x38, 0x00, 0x06, 0x00, 0x38, 0x00, 0xC0, 0x00, 0x38, 0x00, 0x06, 0x00, 0x38, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0077, (w), Index = 079
	 9, 0x04, 0x02, 0x03, 0x0C, 0x00, 0x90, 0x00, 0x60, 0x00, 0x90, 0x03, 0x0C, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0058, (X), Index = 080
	 7, 0x00, 0x82, 0x00, 0x4C, 0x00, 0x30, 0x00, 0x4C, 0x00, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0078, (x), Index = 081
	 9, 0x06, 0x00, 0x01, 0x80, 0x00, 0x40, 0x00, 0x3E, 0x00, 0x40, 0x01, 0x80, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0059, (Y), Index = 082
	 7, 0x03, 0x81, 0x00, 0x71, 0x00, 0x0E, 0x00, 0x70, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x0079, (y), Index = 083
	 8, 0x04, 0x06, 0x04, 0x0A, 0x04, 0x32, 0x04, 0x42, 0x05, 0x82, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x005A, (Z), Index = 084
	 7, 0x00, 0x86, 0x00, 0x8A, 0x00, 0x92, 0x00, 0xA2, 0x00, 0xC2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x007A, (z), Index = 085
	 5, 0x07, 0xFF, 0x04, 0x01, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x005B, ([), Index = 086
	 5, 0x04, 0x01, 0x04, 0x01, 0x07, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x005D, (]), Index = 087
	 7, 0x00, 0x30, 0x00, 0xC0, 0x03, 0x00, 0x00, 0xC0, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x005E, (^), Index = 088
	 9, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x005F, (_), Index = 089
	 5, 0x00, 0x40, 0x03, 0xBC, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x007B, ({), Index = 090
	 5, 0x04, 0x02, 0x03, 0xBC, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x007D, (}), Index = 091
	 8, 0x00, 0x20, 0x00, 0x40, 0x00, 0x40, 0x00, 0x20, 0x00, 0x20, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x007E, (~), Index = 092
};
#endif

#ifdef  PT6524

#pragma SECTION rom Boot_ConstRom

unsigned short const usBOOT_PT6524_FontData[] =
{
	0x0000,													// 0x20, space
	SEG_H | SEG_N,											// 0x21 !
	0x0000,													// 0x22 "
	0x0000,													// 0x23 #
	0x0000,													// 0x24 $
	
	0x0000,													// 0x25 %
	0x0000,													// 0x26 &
	0x0000,													// 0x27 '
	0x0000,													// 0x28 (
	0x0000,													// 0x29 )
	
	SEG_G | SEG_H | SEG_I | SEG_J | SEG_K | SEG_N | SEG_L,		// 0x2A *
	SEG_H | SEG_J | SEG_N,									// 0x2B +
	0x0000,													// 0x2C '
	SEG_J,													// 0x2D -
	0x0000,													// 0x2E .
	
	0x0000,													// 0x2F /
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F | SEG_G | SEG_L,// 0x30 0
	SEG_B | SEG_C ,											// 0x31 1
	SEG_A | SEG_B | SEG_J | SEG_E | SEG_D,					// 0x32 2
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_J,					// 3
	
	SEG_B | SEG_C | SEG_F | SEG_J,							// 4
	SEG_A | SEG_F | SEG_J | SEG_C | SEG_D,					// 5
	SEG_F | SEG_J | SEG_E | SEG_D | SEG_C,					// 6
	SEG_A | SEG_B | SEG_C,									// 7
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F | SEG_J,	// 8
	
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_F | SEG_J,			// 9
	0x0000,													// :
	0x0000,													// ;
	SEG_I | SEG_L,											// <
	0x0000,													// =
	
	SEG_G | SEG_K,											// >
	0x0000,													// ?
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_L,			// @
	SEG_A | SEG_B | SEG_C | SEG_E | SEG_F | SEG_J,			// A
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_H | SEG_N | SEG_J,	// B  
	
	SEG_A | SEG_F | SEG_E | SEG_D,							// C
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_H | SEG_N,			// D
	SEG_A | SEG_D | SEG_E | SEG_F | SEG_J,					// E
	SEG_A | SEG_F | SEG_E | SEG_J,							// F
	SEG_A | SEG_F | SEG_E | SEG_D | SEG_C | SEG_J,			// G
	
	SEG_B | SEG_C | SEG_F | SEG_E | SEG_J,					// H
	SEG_A | SEG_H | SEG_N | SEG_D,							// I
	SEG_E | SEG_D | SEG_C | SEG_B,							// J
	SEG_F | SEG_E | SEG_I | SEG_L,							// K
	SEG_F | SEG_E | SEG_D,									// L
	
	SEG_F | SEG_E | SEG_B | SEG_C | SEG_G | SEG_I,			// M
	SEG_F | SEG_E | SEG_G | SEG_L | SEG_B | SEG_C,			// N
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F,			// O
	SEG_A | SEG_B | SEG_J | SEG_F | SEG_E,					// P
	SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F | SEG_L,	// Q
	
	SEG_A | SEG_B | SEG_J | SEG_F | SEG_E | SEG_L,			// R
	SEG_A | SEG_F | SEG_J | SEG_C | SEG_D,					// S
	SEG_A | SEG_H | SEG_N,									// T
	SEG_F | SEG_B | SEG_E | SEG_C | SEG_D,					// U
	SEG_F | SEG_E | SEG_K | SEG_I,							// V
	
	SEG_F | SEG_E | SEG_K | SEG_L | SEG_C | SEG_B,			// W
	SEG_G | SEG_I | SEG_K | SEG_L,							// X
	SEG_F | SEG_J | SEG_B | SEG_C | SEG_D,					// Y
	SEG_A | SEG_I | SEG_K | SEG_D,							// Z
	0x0000,													// Null
	
	0x0000,													// Null
	0x0000,													// Null
	SEG_J,													// ^
	SEG_D,													// _
	0x0000,													// `
	
	0x0000,													// a
	0x0000,													// b
	0x0000,													// c
	0x0000,													// d
	0x0000,													// e
	0x0000,													// f
	
	0x0000,													// g
	0x0000,													// h
	0x0000,													// i
	0x0000,													// j
	0x0000,													// k
	0x0000,													// l
	0x0000,													// m
	0x0000,													// n
	0x0000,													// o
	0x0000,													// p
	0x0000,													// q
	0x0000,													// r
	0x0000,													// s
	0x0000,													// t
	0x0000,													// u
	0x0000,													// v
	0x0000,													// w
	0x0000,													// x
	0x0000,													// y
	0x0000,													// z
	0x0000,													// {
	0x0000,													// |
	0x0000,													// }
	0x0000,													// ~
	0x0000,													// DEL
};
#endif
unsigned char ucBOOT_DisplayCnt;

#pragma SECTION program UserBoot_Sector

#ifdef  PT6524
unsigned char Boot_ucPT6524_Send_Ongoing;

union{
	struct{
	//////// COM0 - Buf0 ///////////	
		unsigned char S_2N:1;
		unsigned char S_2J:1;
		unsigned char S_2H:1;
		unsigned char S_2A:1;
		unsigned char S_2K:1;
		unsigned char S_2E:1;
		unsigned char S_2F:1;
		unsigned char S_2G:1;

	//////// COM0 - Buf1 ///////////			
		unsigned char S_X8:1;
		unsigned char S_X7:1;
		unsigned char S_X6:1;
		unsigned char S_X5:1;
		unsigned char S_2L:1;
		unsigned char S_2C:1;
		unsigned char S_2B:1;
		unsigned char S_2I:1;

	//////// COM0 - Buf2 ///////////		
		unsigned char S_X4:1;
		unsigned char S_NONE0:3;
		unsigned char S_X:1;
		unsigned char S_X1:1;
		unsigned char S_X2:1;
		unsigned char S_X3:1;
	//////// COM0 - Buf3 ///////////		
		unsigned char S_3N:1;
		unsigned char S_3J:1;
		unsigned char S_3H:1;
		unsigned char S_3A:1;
		unsigned char S_3K:1;
		unsigned char S_3E:1;
		unsigned char S_3F:1;
		unsigned char S_3G:1;
	//////// COM0 - Buf4 ///////////		
		unsigned char S_4K:1;
		unsigned char S_4E:1;
		unsigned char S_4F:1;
		unsigned char S_4G:1;
		unsigned char S_3L:1;
		unsigned char S_3C:1;
		unsigned char S_3B:1;
		unsigned char S_3I:1;
	//////// COM0 - Buf5 ///////////		
		unsigned char S_4L:1;
		unsigned char S_4C:1;
		unsigned char S_4B:1;
		unsigned char S_4I:1;
		unsigned char S_4N:1;
		unsigned char S_4J:1;
		unsigned char S_4H:1;
		unsigned char S_4A:1;
	//////// COM0 - Buf6 ///////////	
		unsigned char S_NONE1:2;
		unsigned char S_CU:1;
		unsigned char S_P0:1;	
		unsigned char S_BT:1;
		unsigned char S_5K:1;
		unsigned char S_5E:1;
		unsigned char S_5F:1;
	//////// COM0 - Buf7 ///////////		
		unsigned char S_DT0:2;
		unsigned char S_BU:1;
		unsigned char S_SC:1;
		unsigned char S_DR:1;
		unsigned char S_P3:1;
		unsigned char S_P2:1;
		unsigned char S_P1:1;
	//////// COM1 - Buf0 ///////////		
		unsigned char S_USB:1;
		unsigned char S_5L:1;
		unsigned char S_5H:1;
		unsigned char S_5A:1;	
		unsigned char S_5D:1;
		unsigned char S_5N:1;
		unsigned char S_5J:1;
		unsigned char S_5G:1;		
	//////// COM1 - Buf1 ///////////	
		unsigned char S_AUX:1;
		unsigned char S_6K:1;
		unsigned char S_6E:1;
		unsigned char S_6F:1;
		unsigned char S_NONE2:1;
		unsigned char S_5C:1;
		unsigned char S_5B:1;
		unsigned char S_5I:1;
	//////// COM1 - Buf2 ///////////		
		unsigned char S_NONE3:1;
		unsigned char S_6L:1;
		unsigned char S_6H:1;
		unsigned char S_6A:1;
		unsigned char S_6D:1;
		unsigned char S_6N:1;
		unsigned char S_6J:1;
		unsigned char S_6G:1;
	//////// COM1 - Buf3 ///////////		
		unsigned char S_NONE4:1;
		unsigned char S_7K:1;
		unsigned char S_7E:1;
		unsigned char S_7F:1;
		unsigned char S_MP3:1;
		unsigned char S_6C:1;
		unsigned char S_6B:1;
		unsigned char S_6I:1;
	//////// COM1 - Buf4 ///////////		
		unsigned char S_4D:1;
		unsigned char S_7L:1;
		unsigned char S_7H:1;
		unsigned char S_7A:1;
		unsigned char S_7D:1;
		unsigned char S_7N:1;
		unsigned char S_7J:1;
		unsigned char S_7G:1;
	//////// COM1 - Buf5 ///////////		
		unsigned char S_WMA:1;
		unsigned char S_8K:1;
		unsigned char S_8E:1;
		unsigned char S_8F:1;
		unsigned char S_3D:1;
		unsigned char S_7C:1;
		unsigned char S_7B:1;
		unsigned char S_7I:1;
	//////// COM1 - Buf6 ///////////
		unsigned char S_NONE5:4;
		unsigned char S_8D:1;
		unsigned char S_8N:1;
		unsigned char S_8J:1;
		unsigned char S_8G:1;
	//////// COM1 - Buf7 ///////////	
		unsigned char S_DT1:2;
		unsigned char S_Dummy2:6;
	//////// COM2 - Buf0 ///////////		
		unsigned char S_ST:1;
		unsigned char S_8C:1;
		unsigned char S_8B:1;
		unsigned char S_8I:1;
		unsigned char S_2D:1;
		unsigned char S_8L:1;
		unsigned char S_8H:1;
		unsigned char S_8A:1;
	//////// COM2 - Buf1 ///////////		
		unsigned char S_9D:1;
		unsigned char S_9N:1;
		unsigned char S_9J:1;
		unsigned char S_9G:1;
		unsigned char S_FD:1;
		unsigned char S_9K:1;
		unsigned char S_9E:1;
		unsigned char S_9F:1;	

	//////// COM2 - Buf2 ///////////		
		unsigned char S_COL:1;
		unsigned char S_9C:1;
		unsigned char S_9B:1;
		unsigned char S_9I:1;
		unsigned char S_NONE6:1;
		unsigned char S_9L:1;
		unsigned char S_9H:1;
		unsigned char S_9A:1;
	//////// COM2 - Buf3 ///////////		
		unsigned char S_10D:1;
		unsigned char S_10N:1;
		unsigned char S_10J:1;
		unsigned char S_10G:1;
		unsigned char S_NONE7:1;
		unsigned char S_10K:1;
		unsigned char S_10E:1;
		unsigned char S_10F:1;
	//////// COM2 - Buf4 ///////////		
		unsigned char S_RPT:1;
		unsigned char S_10C:1;
		unsigned char S_10B:1;
		unsigned char S_10I:1;
		unsigned char S_INT:1;
		unsigned char S_10L:1;
		unsigned char S_10H:1;
		unsigned char S_10A:1;
	//////// COM2 - Buf5 ///////////		
		unsigned char S_11D:1;
		unsigned char S_11N:1;
		unsigned char S_11J:1;
		unsigned char S_11G:1;
		unsigned char S_NONE8:1;
		unsigned char S_11K:1;
		unsigned char S_11E:1;
		unsigned char S_11F:1;
	//////// COM2 - Buf6 ///////////	
		unsigned char S_NONE9:4;
		unsigned char S_RDM:1;
		unsigned char S_11L:1;
		unsigned char S_11H:1;
		unsigned char S_11A:1;
	//////// COM2 - Buf7 ///////////
		unsigned char S_DT2:2;
		unsigned char S_Dummy4:6;	
	//////// COM3 - Buf0 ///////////	
		unsigned char S_NONE10:1;
		unsigned char S_12K:1;
		unsigned char S_12E:1;
		unsigned char S_12F:1;	
		unsigned char S_P:1;
		unsigned char S_11C:1;
		unsigned char S_11B:1;
		unsigned char S_11I:1;
	//////// COM2 - Buf1 ///////////		
		unsigned char S_LOUD:1;
		unsigned char S_12L:1;
		unsigned char S_12H:1;
		unsigned char S_12A:1;
		unsigned char S_12D:1;
		unsigned char S_12N:1;
		unsigned char S_12J:1;
		unsigned char S_12G:1;	

	//////// COM2 - Buf2 ///////////		
		unsigned char S_NONE11:1;
		unsigned char S_13K:1;
		unsigned char S_13E:1;
		unsigned char S_13F:1;
		unsigned char S_NONE12:1;
		unsigned char S_12C:1;
		unsigned char S_12B:1;
		unsigned char S_12I:1;
	//////// COM2 - Buf3 ///////////		
		unsigned char S_EQ:1;
		unsigned char S_13L:1;
		unsigned char S_13H:1;
		unsigned char S_13A:1;
		unsigned char S_13D:1;
		unsigned char S_13N:1;
		unsigned char S_13J:1;
		unsigned char S_13G:1;
	//////// COM2 - Buf4 ///////////		
		unsigned char S_NONE13:5;
		unsigned char S_13C:1;
		unsigned char S_13B:1;
		unsigned char S_13I:1;
	//////// COM2 - Buf5 ///////////		
		unsigned char S_NONE14:8;
	//////// COM2 - Buf6 ///////////		
		unsigned char S_NONE15:8;
	//////// COM2 - Buf7 ///////////
		unsigned char S_DT3:2;
		unsigned char S_Dummy6:6;	
	}bit;
	struct{
		unsigned char ucBuf[PT6524_DATA_SIZE];
	}Byte;
	struct{
		unsigned char ucCom0[PT6524_DATA_SIZE/4];
		unsigned char ucCom1[PT6524_DATA_SIZE/4];
		unsigned char ucCom2[PT6524_DATA_SIZE/4];
		unsigned char ucCom3[PT6524_DATA_SIZE/4];
	}ComData;
}Boot_PT6524_Bit;

void Boot_PT6524_MakeLargeFont(unsigned char ucLoc, unsigned short usFont)
{
	switch  (ucLoc)
	{
		case 0:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_2A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_2B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_2C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_2D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_2E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_2F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_2G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_2H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_2I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_2J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_2K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_2N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_2L = 1;
			}
			break;
		case 1:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_3A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_3B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_3C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_3D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_3E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_3F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_3G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_3H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_3I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_3J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_3K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_3N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_3L = 1;
			}
			break;
		case 2:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_4A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_4B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_4C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_4D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_4E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_4F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_4G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_4H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_4I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_4J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_4K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_4N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_4L = 1;
			}
			break;
		case 3:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_5A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_5B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_5C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_5D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_5E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_5F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_5G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_5H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_5I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_5J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_5K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_5N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_5L = 1;
			}
			break;
		case 4:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_6A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_6B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_6C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_6D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_6E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_6F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_6G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_6H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_6I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_6J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_6K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_6N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_6L = 1;
			}
			break;
		case 5:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_7A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_7B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_7C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_7D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_7E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_7F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_7G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_7H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_7I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_7J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_7K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_7N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_7L = 1;
			}
			break;
		case 6:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_8A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_8B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_8C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_8D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_8E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_8F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_8G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_8H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_8I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_8J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_8K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_8N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_8L = 1;
			}
			break;
		case 7:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_9A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_9B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_9C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_9D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_9E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_9F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_9G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_9H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_9I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_9J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_9K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_9N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_9L = 1;
			}
			break;
		case 8:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_10A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_10B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_10C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_10D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_10E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_10F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_10G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_10H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_10I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_10J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_10K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_10N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_10L = 1;
			}
			break;
		case 9:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_11A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_11B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_11C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_11D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_11E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_11F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_11G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_11H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_11I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_11J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_11K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_11N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_11L = 1;
			}
			break;
		case 10:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_12A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_12B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_12C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_12D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_12E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_12F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_12G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_12H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_12I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_12J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_12K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_12N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_12L = 1;
			}
			break;
		case 11:
			if  (usFont & SEG_A)
			{
				Boot_PT6524_Bit.bit.S_13A = 1;
			}
			if  (usFont & SEG_B)
			{
				Boot_PT6524_Bit.bit.S_13B = 1;
			}
			if  (usFont & SEG_C)
			{
				Boot_PT6524_Bit.bit.S_13C = 1;
			}
			if  (usFont & SEG_D)
			{
				Boot_PT6524_Bit.bit.S_13D = 1;
			}
			if  (usFont & SEG_E)
			{
				Boot_PT6524_Bit.bit.S_13E = 1;
			}
			if  (usFont & SEG_F)
			{
				Boot_PT6524_Bit.bit.S_13F = 1;
			}
			if  (usFont & SEG_G)
			{
				Boot_PT6524_Bit.bit.S_13G = 1;
			}
			if  (usFont & SEG_H)
			{
				Boot_PT6524_Bit.bit.S_13H = 1;
			}
			if  (usFont & SEG_I)
			{
				Boot_PT6524_Bit.bit.S_13I = 1;
			}
			if  (usFont & SEG_J)
			{
				Boot_PT6524_Bit.bit.S_13J = 1;
			}
			if  (usFont & SEG_K)
			{
				Boot_PT6524_Bit.bit.S_13K = 1;
			}
			if  (usFont & SEG_N)
			{
				Boot_PT6524_Bit.bit.S_13N = 1;
			}
			if  (usFont & SEG_L)
			{
				Boot_PT6524_Bit.bit.S_13L = 1;
			}
			break;
	}
}

void Boot_PT6524_SendCommand(unsigned char ucData)
{
	unsigned short i;

	s2tic = 0;	// Interrupt Disable
	u2tb = ucData;


#if  1

	for(i = 0; i < 5000; ++i)
	{
		if  (ti_u2c1 == 1)
		{
			break;
		}
	}
	for(i=0 ;i<5000 ;i++)
	{
		
		if  (txept_u2c0 == 1)
		{
			break;
		}
	}
	
#else
	for(i = 0; i < 5000; ++i)
	{
		if  (ir_s2tic == 1)
		{
			break;
		}
	}
#endif
}

void Boot_PT6524_BufferClear(void)
{
	BOOT_memset(&Boot_PT6524_Bit.ComData.ucCom0[0], 0x00, PT6524_DATA_SIZE/4 - 1);
	BOOT_memset(&Boot_PT6524_Bit.ComData.ucCom1[0], 0x00, PT6524_DATA_SIZE/4 - 1);
	BOOT_memset(&Boot_PT6524_Bit.ComData.ucCom2[0], 0x00, PT6524_DATA_SIZE/4 - 1);
	BOOT_memset(&Boot_PT6524_Bit.ComData.ucCom3[0], 0x00, PT6524_DATA_SIZE/4 - 1);
}

void Boot_PT6524_SendData(unsigned char ucData)
{	
	unsigned short i;
		
	s2tic = 0;		// Interrupt enable : Level 6
	u2tb = ucData;
	for(i = 0; i < 5000; ++i)
	{
		if  (ir_s2tic == 1)
		{
			break;
		}
	}
}

unsigned short const Boot_PT6524_GetFont(unsigned char ucData)
{
	unsigned char ucOffset;
	
	if  (ucData < 0x20)
	{
		return(0);
	}

	if  ((ucData > ('a' - 1)) && (ucData < ('z' + 1)))
	{
		ucOffset = ucData - 'a';
		ucData = 'A' + ucOffset;
	}
//	ucData = '1';
	ucOffset = ucData - 0x20;

	return(usBOOT_PT6524_FontData[ucOffset]);
}

void Boot_PT6524_MakeDriverData(unsigned char *ucFontBuf)
{
	unsigned short usFont;

	Boot_PT6524_BufferClear();

//	Boot_PT6524_MakeLargeFont(0, Boot_PT6524_GetFont(*(ucFontBuf + 0)));
//	Boot_PT6524_MakeLargeFont(1, Boot_PT6524_GetFont(*(ucFontBuf + 1)));
//	Boot_PT6524_MakeLargeFont(2, Boot_PT6524_GetFont(*(ucFontBuf + 2)));
	
	Boot_PT6524_MakeLargeFont(3, Boot_PT6524_GetFont(*(ucFontBuf + 0)));
	Boot_PT6524_MakeLargeFont(4, Boot_PT6524_GetFont(*(ucFontBuf + 1)));
	Boot_PT6524_MakeLargeFont(5, Boot_PT6524_GetFont(*(ucFontBuf + 2)));
	Boot_PT6524_MakeLargeFont(6, Boot_PT6524_GetFont(*(ucFontBuf + 3)));
	Boot_PT6524_MakeLargeFont(7, Boot_PT6524_GetFont(*(ucFontBuf + 4)));
	Boot_PT6524_MakeLargeFont(8, Boot_PT6524_GetFont(*(ucFontBuf + 5)));
	Boot_PT6524_MakeLargeFont(9, Boot_PT6524_GetFont(*(ucFontBuf + 6)));
	Boot_PT6524_MakeLargeFont(10, Boot_PT6524_GetFont(*(ucFontBuf + 7)));
	Boot_PT6524_MakeLargeFont(11, Boot_PT6524_GetFont(*(ucFontBuf + 8)));
	
}
//a
#endif
#ifdef  ST7565P
void BOOT_ST7565_SendCommand(unsigned char ucCmd)
{
	unsigned int i;
	
	uform_u2c0 = 1;
	PO_ST7565_CS = 0;
	PO_ST7565_A0 = 0;

	M_NOP;
	M_NOP;
	
	u2tb = ucCmd;
	te_u2c1 = 1;

	for(i = 0; i < 5000; ++i)
	{
		if  (ti_u2c1 == 1)
		{
			break;
		}
	}
	for(i = 0; i < 5000; ++i)
	{
		if  (txept_u2c0 == 1)
		{
			break;
		}
	}
	
	M_NOP;
	M_NOP;
	
	PO_ST7565_CS = 1;
	te_u2c1 = 0;
}
#endif
void BOOT_DisplayInit(void)
{	
#ifdef  ST7565P	
	BOOT_memset(&ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 2 + 3], 0x00, ST7565P_WIDTH - 1);
	
	PO_ST7565_CS = 1;
	PO_ST7565_RST = 0;
	BOOT_Delay(30);
	PO_ST7565_RST = 1;
	BOOT_Delay(50);
	
	
	BOOT_ST7565_SendCommand(0xE2);
	BOOT_Delay(20);
	BOOT_ST7565_SendCommand(0xA0 | 0x02);
	BOOT_ST7565_SendCommand(0xA0);
	BOOT_ST7565_SendCommand(0xC8);
	BOOT_ST7565_SendCommand(0x23);
	BOOT_ST7565_SendCommand(0x81);
	BOOT_ST7565_SendCommand(0x18);
	BOOT_ST7565_SendCommand(0xF8);
	BOOT_ST7565_SendCommand(0x00);
	BOOT_ST7565_SendCommand(0x2C);
	BOOT_Delay(20);
	BOOT_ST7565_SendCommand(0x2E);
	BOOT_Delay(20);
	BOOT_ST7565_SendCommand(0x2F);
	BOOT_Delay(20);
	BOOT_ST7565_SendCommand(0xA6);
	BOOT_ST7565_SendCommand(0x44);
	BOOT_ST7565_SendCommand(0x81);
	BOOT_ST7565_SendCommand(27);
	BOOT_Delay(20);	
	BOOT_ST7565_SendCommand(0xAF);
#endif
#ifdef  PT6524

	PO_PT6524_RST = 1;
	PO_PT6524_CE = 0;
	Boot_ucPT6524_Send_Ongoing = 0;

	BOOT_memset(&Boot_PT6524_Bit.Byte.ucBuf[0], 0x00, 32);

	Boot_PT6524_Bit.bit.S_DT0 = 0;
	Boot_PT6524_Bit.bit.S_DT1 = 1;
	Boot_PT6524_Bit.bit.S_DT2 = 2;
	Boot_PT6524_Bit.bit.S_DT3 = 3;
	Boot_PT6524_Bit.bit.S_P0 = 0;	// Segment/GPIO : All is Segment
	Boot_PT6524_Bit.bit.S_P1 = 0;	// Segment/GPIO : All is Segment
	Boot_PT6524_Bit.bit.S_P2 = 0;	// Segment/GPIO : All is Segment
	Boot_PT6524_Bit.bit.S_P3 = 0;	// Segment/GPIO : All is Segment
	Boot_PT6524_Bit.bit.S_DR = 0;	// BIAS DRIVE TECHNIQUR CONTROL DATA BIT : 1/3 Bias
	Boot_PT6524_Bit.bit.S_SC = 0;	// SEGMENT ON / OFF CONTROL DATA BIT : ON
	Boot_PT6524_Bit.bit.S_BU = 0;	// NORMAL / POWER SAVING MODE SELECT BIT : Normal Mode
	Boot_PT6524_Bit.bit.S_CU = 0;	// Current Drain : Normal Current Drain
#endif
}
#ifdef  ST7565P
unsigned short BOOT_AGC5030_GetFontIndex_0x0021_0x007E(unsigned short usIndex)
{
	unsigned short i;

	for(i = 0; i < 93; ++i)
	{
		if  (usIndex == BOOT_AGC5030FontIndex_0x0021_0x007E[i])
		{
			return(i);
		}
		if  (0xFFFF == BOOT_AGC5030FontIndex_0x0021_0x007E[i])
		{
			break;
		}
	}
	return(0xFFFF);
}

unsigned char const *BOOT_AGC5030Font_GetData_0x0021_0x007E(unsigned short ucIndex)
{
	return(&BOOT_AGC5030Font_0x0021_0x007E[ucIndex * AGC5030_FONT_WITDH]);
}

unsigned char BOOT_ST7565P_GetFont(unsigned short usIndex)
{
	unsigned char wth = 0;
	unsigned char i;
	unsigned short usTableIndex;

	ucBOOT_AGC5030_FontTableAddrs = &ucBOOT_AGC5030_FontDataDefault[0];
			
	if  ((usIndex >= 0x0021) && (usIndex <= 0x007E))
	{
		usTableIndex = BOOT_AGC5030_GetFontIndex_0x0021_0x007E(usIndex);
		if  (usTableIndex == 0xFFFF)
		{
			ucBOOT_AGC5030_FontTableAddrs = &ucBOOT_AGC5030_FontDataDefault[0];
		}
		else
		{
			ucBOOT_AGC5030_FontTableAddrs = BOOT_AGC5030Font_GetData_0x0021_0x007E(usTableIndex);
		}
	}
}

unsigned char BOOT_ST7565_UpdateData(unsigned short usX)
{
	unsigned char wth;
	unsigned char i;

	wth = ucBOOT_AGC5030_FontTableAddrs[0];
	for(i = 0; i < wth; ++i)
	{
		ucDisplayBuf0[usX + i] = ucBOOT_AGC5030_FontTableAddrs[i * 2 + 1];
		ucDisplayBuf1[usX + i] = ucBOOT_AGC5030_FontTableAddrs[i * 2 + 2];
		if  ((usX + i) >= (ST7565P_WIDTH - 1))
		{
			break;
		}
	}

	return(wth);
}
#endif

void BOOT_DisplayUpdate(unsigned char *ucData)
{
#ifdef  ST7565P
	unsigned short usOffset = 0;
	unsigned char wth = 0;
	
	BOOT_memset(&ucDisplayBuf0[0],0x00,ST7565P_WIDTH);
	BOOT_memset(&ucDisplayBuf1[0],0x00,ST7565P_WIDTH);
	
	while(1)
	{
		if  (*ucData == 0x00)
		{
			break;
		}
		BOOT_ST7565P_GetFont(*ucData);
		wth = ucBOOT_AGC5030_FontTableAddrs[0];
		if  ((usOffset + wth) > (ST7565P_WIDTH + 2))
		{
			break;
		}
		usOffset = usOffset + BOOT_ST7565_UpdateData(usOffset);
		if  (*ucData == '1')
		{
			usOffset = usOffset + 2;
		}
		
		++ucData;
	}

	BOOT_memset(&ucST7565P_DataBuf[3], 0x00, ST7565P_WIDTH);	
	BOOT_memset(&ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 1 + 3], 0x00, ST7565P_WIDTH);

	usST7565P_DataBufCnt = 0;
	ucST7565P_DataBuf[0] = 0xB0 | 0;
	ucST7565P_DataBuf[1] = 0x10 | ((ST7565P_COLUMN_ADDRESS >> 4) & 0x0F);
	ucST7565P_DataBuf[2] = 0x00 | (ST7565P_COLUMN_ADDRESS & 0x0F);
	BOOT_memcpy(&ucST7565P_DataBuf[3], &ucDisplayBuf0[0], ST7565P_WIDTH);
	
	ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 1] = 0xB0 | 1;
	ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 1 + 1] = 0x10 | ((ST7565P_COLUMN_ADDRESS >> 4) & 0x0F);
	ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 1 + 2] = 0x00 | (ST7565P_COLUMN_ADDRESS & 0x0F);			
	BOOT_memcpy(&ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 1 + 3], &ucDisplayBuf1[0], ST7565P_WIDTH);

	ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 2] = 0xB0 | 8;
	ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 2 + 1] = 0x10 | ((ST7565P_COLUMN_ADDRESS >> 4) & 0x0F);
	ucST7565P_DataBuf[(ST7565P_WIDTH + 3) * 2 + 2] = 0x00 | (ST7565P_COLUMN_ADDRESS & 0x0F);	
	
	uform_u2c0 = 1;
	PO_ST7565_A0 = 0;
	PO_ST7565_CS = 0;

	s2tic = 0;		// Interrupt Disable : Level 6
	u2tb = ucST7565P_DataBuf[0];
	te_u2c1 = 1;	/* U0C1 register re-setup	*/
					/* <TE>: transmit enable	*/

	while(1)
	{
		while(1)
		{
			if  (ir_s2tic == 1)
			{
				break;
			}
		}
		++usST7565P_DataBufCnt;
		if  ((usST7565P_DataBufCnt % (ST7565P_WIDTH + 3)) < 3)
		{
			uform_u2c0 = 1;
			PO_ST7565_A0 = 0;	// cmd
		}
		else
		{
			PO_ST7565_A0 = 1;	// Data
			uform_u2c0 = 0;
		}

		if  (usST7565P_DataBufCnt > ((ST7565P_WIDTH + 3) * 3 - 3))
		{
			te_u2c1 = 0;	/* U0C1 register re-setup	*/
								/* <TE>: transmit enable	*/
			s2tic = 0;		// Interrupt Disable : Level 6
			PO_ST7565_CS = 1;

			break;
		}
		else
		{
			u2tb = ucST7565P_DataBuf[usST7565P_DataBufCnt];
			s2tic = 0;
		}
	}
#endif



#ifdef  PT6524
	unsigned char i;

	Boot_PT6524_MakeDriverData(ucData);

	PO_PT6524_CE = 0;
	BOOT_Delay(10);
	Boot_PT6524_SendCommand(0x82);
	BOOT_Delay(10);
	PO_PT6524_CE = 1;
	BOOT_Delay(10);
	for(i = 0; i < PT6524_DATA_SIZE/4; ++i)
	{
		Boot_PT6524_SendData(Boot_PT6524_Bit.ComData.ucCom0[i]);
		BOOT_Delay(5);
	}
	
	PO_PT6524_CE = 0;
	BOOT_Delay(10);
	Boot_PT6524_SendCommand(0x82);
	BOOT_Delay(10);
	PO_PT6524_CE = 1;
	BOOT_Delay(10);
	for(i = 0; i < PT6524_DATA_SIZE/4; ++i)
	{
		Boot_PT6524_SendData(Boot_PT6524_Bit.ComData.ucCom1[i]);
		BOOT_Delay(5);
	}
	
	PO_PT6524_CE = 0;
	BOOT_Delay(10);
	Boot_PT6524_SendCommand(0x82);
	BOOT_Delay(10);
	PO_PT6524_CE = 1;
	BOOT_Delay(10);
	for(i = 0; i < PT6524_DATA_SIZE/4; ++i)
	{
		Boot_PT6524_SendData(Boot_PT6524_Bit.ComData.ucCom2[i]);
		BOOT_Delay(5);
	}
	
	PO_PT6524_CE = 0;
	BOOT_Delay(10);
	Boot_PT6524_SendCommand(0x82);
	BOOT_Delay(10);
	PO_PT6524_CE = 1;
	BOOT_Delay(10);
	for(i = 0; i < PT6524_DATA_SIZE/4; ++i)
	{
		Boot_PT6524_SendData(Boot_PT6524_Bit.ComData.ucCom3[i]);
		BOOT_Delay(5);
	}
	BOOT_Delay(10);
	PO_PT6524_CE = 0;
#endif
}

void BOOT_DISP_CHK_USB(void)
{
	unsigned char ucBuf[12];

	BOOT_memset(&ucBuf[0], 0x00, 12);

	ucBuf[0] = 'C';
	ucBuf[1] = 'h';
	ucBuf[2] = 'e';
	ucBuf[3] = 'c';
	ucBuf[4] = 'k';
	ucBuf[5] = ' ';
	ucBuf[6] = 'U';
	ucBuf[7] = 'S';
	ucBuf[8] = 'B';

	BOOT_DisplayUpdate(&ucBuf[0]);
}

void BOOT_DISP_READ_USB(void)
{
	unsigned char ucBuf[12];

	BOOT_memset(&ucBuf[0], 0x00, 12);

	ucBuf[0] = 'R';
	ucBuf[1] = 'e';
	ucBuf[2] = 'a';
	ucBuf[3] = 'd';
	ucBuf[4] = 'i';
	ucBuf[5] = 'n';
	ucBuf[6] = 'g';
	BOOT_DisplayUpdate(&ucBuf[0]);
}

void BOOT_DISP_LOAD_USB(void)
{
	unsigned char ucBuf[12];
	
	BOOT_memset(&ucBuf[0], 0x00, 12);

	ucBuf[0] = 'L';
	ucBuf[1] = 'o';
	ucBuf[2] = 'a';
	ucBuf[3] = 'd';
	ucBuf[4] = 'i';
	ucBuf[5] = 'n';
	ucBuf[6] = 'g';
#ifdef  ST7565P
	if  (ucBOOT_DisplayCnt < 3)
	{		
		switch  (ucBOOT_DisplayCnt)
		{
			case 0:				
				ucBuf[7] = '.';
				break;
			case 1:
				ucBuf[7] = '.';
				ucBuf[8] = '.';
				break;
			case 2:
				ucBuf[7] = '.';
				ucBuf[8] = '.';
				ucBuf[9] = '.';
				break;
		}
		++ucBOOT_DisplayCnt;
	}
	else
	{
		ucBOOT_DisplayCnt = 0;
	}
	
#endif	
#ifdef  PT6524	

	if  (ucBOOT_DisplayCnt < 3)
	{		
		switch  (ucBOOT_DisplayCnt)
		{
			case 0:				
				ucBuf[7] = ' ';
				break;
			case 1:
				ucBuf[7] = '-';
				break;
			case 2:
				ucBuf[7] = '-';
				ucBuf[8] = '-';
				break;
		}
		++ucBOOT_DisplayCnt;
	}
	else
	{
		ucBOOT_DisplayCnt = 0;
	}
#endif				
	BOOT_DisplayUpdate(&ucBuf[0]);
}

void BOOT_DISP_NO_FILE(void)
{
	unsigned char ucBuf[12];

	BOOT_memset(&ucBuf[0], 0x00, 12);

	ucBuf[0] = 'N';
	ucBuf[1] = 'O';
	ucBuf[2] = '-';
	ucBuf[3] = 'S';
	ucBuf[4] = '/';
	ucBuf[5] = 'W';
	ucBuf[6] = ' ';
	ucBuf[7] = 'f';
	ucBuf[8] = 'i';
	ucBuf[9] = 'l';
	ucBuf[10] = 'e';
				
	BOOT_DisplayUpdate(&ucBuf[0]);
}

void BOOT_DISP_FILE_ERROR(void)
{
	unsigned char ucBuf[12];

	BOOT_memset(&ucBuf[0], 0x00, 12);

#ifdef  ST7565P
	ucBuf[0] = 'F';
	ucBuf[1] = 'i';
	ucBuf[2] = 'l';
	ucBuf[3] = 'e';
	ucBuf[4] = ' ';
	ucBuf[5] = 'E';
	ucBuf[6] = 'r';
	ucBuf[7] = 'r';
	ucBuf[8] = 'o';
	ucBuf[9] = 'r';
#endif

#ifdef  PT6524	
	ucBuf[0] = 'F';
	ucBuf[1] = 'i';
	ucBuf[2] = 'l';
	ucBuf[3] = 'e';
	ucBuf[4] = ' ';
	ucBuf[5] = 'E';
	ucBuf[6] = 'r';
	ucBuf[7] = 'r';
#endif				
	BOOT_DisplayUpdate(&ucBuf[0]);
}


void BOOT_DISP_MANY_FILE(void)
{
	unsigned char ucBuf[12];

	BOOT_memset(&ucBuf[0], 0x00, 12);

	ucBuf[0] = 'M';
	ucBuf[1] = 'a';
	ucBuf[2] = 'n';
	ucBuf[3] = 'y';
	ucBuf[4] = ' ';
	ucBuf[5] = 'F';
	ucBuf[6] = 'i';
	ucBuf[7] = 'l';
	ucBuf[8] = 'e';
			
	BOOT_DisplayUpdate(&ucBuf[0]);
}
void BOOT_DISP_NO_USB(void)
{
	unsigned char ucBuf[12];

	BOOT_memset(&ucBuf[0], 0x00, 12);

	ucBuf[0] = 'N';
	ucBuf[1] = 'o';
	ucBuf[2] = ' ';
	ucBuf[3] = 'U';
	ucBuf[4] = 'S';
	ucBuf[5] = 'B';
	BOOT_DisplayUpdate(&ucBuf[0]);
}

void BOOT_DISP_BLANK(void)
{
	unsigned char ucBuf[12];

	BOOT_memset(&ucBuf[0], ' ', 12);
	ucBuf[11] = 0x00;
	BOOT_DisplayUpdate(&ucBuf[0]);
}

void BOOT_DISP_START_UPDATE(void)
{
	unsigned char ucBuf[13];

	BOOT_memset(&ucBuf[0], 0x00, 13);
	
#ifdef  ST7565P
	ucBuf[0] = 'S';
	ucBuf[1] = 't';
	ucBuf[2] = 'a';
	ucBuf[3] = 'r';
	ucBuf[4] = 't';
	ucBuf[5] = ' ';
	ucBuf[6] = 'U';
	ucBuf[7] = 'p';
	ucBuf[8] = 'd';
	ucBuf[9] = 'a';
	ucBuf[10] = 't';
	ucBuf[11] = 'e';
#endif

#ifdef  PT6524	
	ucBuf[0] = 'S';
	ucBuf[1] = 't';
	ucBuf[2] = 'a';
	ucBuf[3] = 'r';
	ucBuf[4] = 't';
#endif
	BOOT_DisplayUpdate(&ucBuf[0]);

}

unsigned short ucBOOT_DISP_ProgressPercent;

void BOOT_DISP_InitPercent(void)
{
	ucBOOT_DISP_ProgressPercent = 0;
}

void BOOT_DISP_Update_Percent(unsigned char ucPer)
{
	unsigned char ucBuf[12];

	if  (ucBOOT_DISP_ProgressPercent == ucPer)
	{
		return;
	}
	ucBOOT_DISP_ProgressPercent = ucPer;
	BOOT_memset(&ucBuf[0], 0x00, 12);

#ifdef  ST7565P
	ucBuf[0] = 'U';
	ucBuf[1] = 'p';
	ucBuf[2] = 'd';
	ucBuf[3] = 'a';
	ucBuf[4] = 't';
	ucBuf[5] = 'e';
	ucBuf[6] = ' ';
	ucBuf[7] = (ucPer / 10) + '0';
	ucPer = ucPer % 10;
	ucBuf[8] = ucPer + '0';
	ucBuf[9] = '%';
#endif	

#ifdef  PT6524	
	ucBuf[0] = 'U';
	ucBuf[1] = 'p';
	ucBuf[2] = 'd';
	ucBuf[3] = 'a';
	ucBuf[4] = 't';
	ucBuf[5] = 'e';
	ucBuf[6] = ' ';
	ucBuf[7] = (ucPer / 10) + '0';
	ucPer = ucPer % 10;
	ucBuf[8] = ucPer + '0';
#endif
	BOOT_DisplayUpdate(&ucBuf[0]);
}

void BOOT_DISP_Update_Complete(void)
{
	unsigned char ucBuf[12];

	BOOT_memset(&ucBuf[0], 0x00, 12);

	ucBuf[0] = 'C';
	ucBuf[1] = 'o';
	ucBuf[2] = 'm';
	ucBuf[3] = 'p';
	ucBuf[4] = 'l';
	ucBuf[5] = 'e';
	ucBuf[6] = 't';
	ucBuf[7] = 'e';
	BOOT_DisplayUpdate(&ucBuf[0]);
}